package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.entity.Permissions;
import org.example.entity.Users;
import org.example.models.PermissionsVo;

import java.util.List;

public interface PermissionsMapper extends BaseMapper<Permissions> {
    List<Permissions> getPermissionTree(Integer parentId);

    List<Permissions> selectByRolesAndUserId(Integer userId);
}